package com.retoc.oawx.mapper;

import com.retoc.oawx.domain.Checkin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;

/**
* @author retoc
* @description 针对表【tb_checkin(签到表)】的数据库操作Mapper
* @createDate 2022-05-01 20:00:13
* @Entity com.retoc.oawx.domain.Checkin
*/
@Mapper
public interface CheckinMapper extends BaseMapper<Checkin> {
        public Integer haveCheckin(HashMap param);

        public void insertCheckin(Checkin checkin);

        public HashMap searchTodayCheckin(int userId);

        public long searchCheckinDays(int userId);

        public ArrayList<HashMap> searchWeekCheckin(HashMap param);

        public int deleteUserCheckin(int userId);

}




